<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="common/head.jsp"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/statics/rece/css/view.css">
<div id="header">
  <h1>Bookends</h1>
</div>

<div id="content">
	<div id="nav">
      <ul id="menu">
        <li><a href="#">作者:<span>${devuser.user_name }</span></a></li>
        <li><a href="#">生日:<fmt:formatDate value="${devuser.birthday  }" pattern="yyyy-MM-dd HH:mm:ss"/></a></li>
        <li><a href="#">email:<span>${devuser.email }</span></a></li>
        <li><a href="#" >点赞量:<span id="likcount">${articleView.lik}</span></a></li>
         <li><a href="#">发表时间:<fmt:formatDate value="${articleView.creattime }" pattern="yyyy-MM-dd HH:mm:ss"/></a></li>
        
      </ul>
      <br>
</div>

<form action="${pageContext.request.contextPath }/comment">
		<input id="aid" type="hidden" name="articleId" value="${articleView.id}">
		<input id="uid" type="hidden" name="devUserId" value="${loginUser.id }">
<h2>${articleView.title}</h2>
<p>${articleView.content} </p>
<div class="ylcon">
<p class="tit">
所有留言
</p>
<hr/>
<div id="messDivId">
	<c:forEach items="${commentlst }" var="comment">
<div class="story">
<div class="opbtn"></div>
<p class="story_t">${comment.devCode }</p>
<p class="story_time"><fmt:formatDate value="${comment.time }" pattern="yyyy-MM-dd HH:mm:ss"/></p>
<p class="story_m">${comment.connent }</p>
</div>
</c:forEach>

</div>
</div>
</div>
<c:if test="${loginUser==null}">
<p style="padding-left: 40%;">您需要<a href="${pageContext.request.contextPath }/Login">登陆</a>后才可以发表评论和收藏</p>
</c:if>
<c:if test="${loginUser!=null}">
	
		
		<div align="center">
		<textarea rows="2" cols="52%" name="connent"></textarea>
		
		<input style="margin-left: 420px padding-top: 500px;  position: relative;top: 25px;" type="submit" value="发表评论"/>
		<button style="position: relative; left: 51px;" type="button" id="sbutton1"><c:if test="${book==null }">收藏</c:if><c:if test="${book!=null }">已收藏</c:if></button>
		
		<p style="font-size: 30px;" class="like" <c:if test="${like!=null }"> id="like" </c:if>>&#10084;</p>
		
		</div>
		</c:if>

</form>

<div id="footer">
    <p>Copyright &copy; 2005 <strong>Your Name</strong></p>
</div>
</div>
<%-- <div id="journal1">
<div id="journal"> 
		<form action="${pageContext.request.contextPath }/comment">
		<input id="aid" type="hidden" name="articleId" value="${articleView.id}">
		<input id="uid" type="hidden" name="devUserId" value="${loginUser.id }">
		<h2>${articleView.title}</h2>
		<p>${articleView.content} </p>
		
		<br/>
		<div>
		<ul class="ul" >  
			<c:forEach items="${commentlst }" var="comment">
				<li class="newslist"><span><fmt:formatDate value="${comment.time }" pattern="yyyy-MM-dd HH:ss:mm"/></span><a href="#" class="a">${comment.devCode }</a>·<a href="#" class="a">${comment.connent }</a></li>  
			</c:forEach>
		   
		</ul> 
		</div>
		<br/>
		<div>
		<c:if test="${loginUser!=null}">
		<div align="center">
		<textarea rows="2" cols="10" name="connent"></textarea>
		
		<input style="margin-left: 420px padding-top: 500px;  position: relative;top: 40px" type="submit" value="发表评论"/>
		<button style=" float: right;" type="button" id="sbutton1"><c:if test="${book==null }">收藏</c:if><c:if test="${book!=null }">已收藏</c:if></button>
		
				<button type="button" class="thumbs_button" style="float: right;"><c:if test="${like==null }">赞${articleView.lik}</c:if><c:if test="${like!=null }">已赞</c:if></button>
		
		</div>
		</c:if>
		</div>
		
		</form>
		

</div>

</div> --%>

<div data-am-widget="gotop" class="am-gotop am-gotop-fixed" >
    <a href="#top" title="回到顶部">
        <span class="am-gotop-title">回到顶部</span>
        <i class="am-gotop-icon am-icon-chevron-up"></i>
    </a>
</div>
<%@include file="common/foot.jsp"%>
